package com.example.terminalservice.service;

import com.example.terminalservice.common.Result;
import com.example.terminalservice.pojo.Role;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author 28142
* @description 针对表【sys_role】的数据库操作Service
* @createDate 2023-08-05 09:42:19
*/
public interface RoleService extends IService<Role> {

    Result getRolesByUser(Integer userId);

    boolean setRolesByUser(Integer userId, List<Integer> ids);

    Result findPage(Integer pageNum, Integer pageSize, String name);

    boolean saveRole(Role role);
}
